<?php

namespace app\models;

/**
 * This is the model class for table "cti_file".
 */
class CtiConfig extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'cti_config';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'integer'],
            [['id'], 'unique'],
            [[ 'create_at', 'update_at'], 'integer'],
            [['name'], 'string', 'max' => 40],
            [['ch_name'], 'string', 'max' => 50],
            [['en_name'], 'string', 'max' => 50],
            [['type'], 'string', 'max' => 50],
            [['remark'], 'string', 'max' => 255],
            [['update_at'],'default','value'=>time()],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
        ];
    }
}
